﻿#pragma warning(disable: 4996)
#pragma warning(disable: 6031)

#include <stdio.h>

void solve() {
	int Sum = 0;
	int a;
	int n = 4;
	for (int i = 0; i < 4; i++) {
		scanf("%d", &a);
		Sum += a;
	}
	printf("Sum = %d; Average = %.1f\n", Sum, (double)Sum / n);
}

int main()
{
	freopen("D:/Develop/GitRepos/MOOC/浙江大学/数据结构/201906/DataStructure/M2019秋C入门和进阶练习集/7-9.txt", "r", stdin);
	solve();
	return 0;
}